﻿@model CustomerNavigationModel           
@using Nop.Web.Models.Customer;
<nav class="sidebar light">
    <ul>
        <li class="title">
            @T("Account.Navigation")
        </li>
        @Html.Widget("account_navigation_before")
        @if (!Model.HideInfo)
        {
            <li class="stick bg-red @if (Model.SelectedTab == CustomerNavigationEnum.Info)
                                                                {<text>active</text>}
                                                                else
                                                                {<text>inactive</text>}"><a href="@Url.RouteUrl("CustomerInfo")">@T("Account.CustomerInfo")</a></li>
        }
        @if (!Model.HideAddresses)
        {
            <li class="stick bg-yellow @if (Model.SelectedTab == CustomerNavigationEnum.Addresses)
                                                                    {<text>active</text>}
                                                                    else
                                                                    {<text>inactive</text>}"><a href="@Url.RouteUrl("CustomerAddresses")">@T("Account.CustomerAddresses")</a></li>
        }
        @if (!Model.HideOrders)
        { 
            <li class="stick bg-green @if (Model.SelectedTab == CustomerNavigationEnum.Orders)
                                                                    {<text>active</text>}
                                                                    else
                                                                    {<text>inactive</text>}"><a href="@Url.RouteUrl("CustomerOrders")">@T("Account.CustomerOrders")</a></li>
        }
        @if (!Model.HideReturnRequests)
        { 
            <li class="stick bg-steel @if (Model.SelectedTab == CustomerNavigationEnum.ReturnRequests)
                                                                            {<text>active</text>}
                                                                            else
                                                                            {<text>inactive</text>}"><a href="@Url.RouteUrl("CustomerReturnRequests")">@T("Account.CustomerReturnRequests")</a></li>
        }
        @if (!Model.HideDownloadableProducts)
        { 
            <li class="stick bg-blue @if (Model.SelectedTab == CustomerNavigationEnum.DownloadableProducts)
                                                                                {<text>active</text>}
                                                                                else
                                                                                {<text>inactive</text>}"><a href="@Url.RouteUrl("CustomerDownloadableProducts")">@T("Account.DownloadableProducts")</a></li>
        }
        @if (!Model.HideBackInStockSubscriptions)
        { 
            <li class="stick bg-brown @if (Model.SelectedTab == CustomerNavigationEnum.BackInStockSubscriptions)
                                                                                {<text>active</text>}
                                                                                else
                                                                                {<text>inactive</text>}"><a href="@Url.RouteUrl("CustomerBackInStockSubscriptions")">@T("Account.BackInStockSubscriptions")</a></li>
        }
        @if (!Model.HideRewardPoints)
        { 
            <li class="stick bg-black @if (Model.SelectedTab == CustomerNavigationEnum.RewardPoints)
                                                                        {<text>active</text>}
                                                                        else
                                                                        {<text>inactive</text>}"><a href="@Url.RouteUrl("CustomerRewardPoints")">@T("Account.RewardPoints")</a></li>
        }
        @if (!Model.HideChangePassword)
        { 
            <li class="stick bg-orange @if (Model.SelectedTab == CustomerNavigationEnum.ChangePassword)
                                                                            {<text>active</text>}
                                                                            else
                                                                            {<text>inactive</text>}"><a href="@Url.RouteUrl("CustomerChangePassword")">@T("Account.ChangePassword")</a></li>
        }
        @if (!Model.HideAvatar)
        { 
            <li class="stick bg-violet @if (Model.SelectedTab == CustomerNavigationEnum.Avatar)
                                                                    {<text>active</text>}
                                                                    else
                                                                    {<text>inactive</text>}"><a href="@Url.RouteUrl("CustomerAvatar")">@T("Account.Avatar")</a></li> 
        }
        @if (!Model.HideForumSubscriptions)
        { 
            <li class="stick bg-pink @if (Model.SelectedTab == CustomerNavigationEnum.ForumSubscriptions)
                                                                                {<text>active</text>}
                                                                                else
                                                                                {<text>inactive</text>}"><a href="@Url.RouteUrl("CustomerForumSubscriptions")">@T("Account.ForumSubscriptions")</a></li>
        }
        @Html.Widget("account_navigation_after")
    </ul>
</nav>
